﻿using Microsoft.AspNetCore.Mvc;
using System.IO;
using VisionCloud.Domain.Filters;

namespace VisionCloud.Api.Controllers.Ms
{
    /// <summary>
    /// 静态文件模块
    /// </summary>
    [SystemModuleAttribute("静态文件模块")]
    [ApiVersion("1.0")]
    [Route("api/ms/[controller]/[Action]")]
    [ApiExplorerSettings(GroupName = "静态文件模块")]
    public class StaticFliesController : ApiBaseController
    {
        [HttpPost]
        public IActionResult BannerImage()
        {
            var file = Path.Combine(Directory.GetCurrentDirectory(), "MyStaticFiles", "images", "banner1.svg");

            return PhysicalFile(file, "image/svg+xml");
        }
    }
}